package Test;

public class Testthread1 {
	public static void main(String[] args) {
		for(int i=1;i<1000;i++){
			if(i==100){
				new Thread(){
					public void run(){
						for(int i=0;i<1000;i++)
							System.out.println(Thread.currentThread().getName()+"..."+i);
					};
				}.start();
			}
			System.out.println(Thread.currentThread().getName()+"......"+i);
		}
		System.out.println("main end...");
}
}
